<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript">
    var arr=[1,2,3,4,5];
    arr.forEach(function(a,b,c){console.log('a='+a+',b='+b+',c='+c)})
    var arr2=[21,3,2,32,7,73,0]
    // console.log(arr2.sort())     
    arr2.sort(function(a,b){console.log('a='+a+',b='+b)})
    console.log(arr2)  
    </script>
    
</head>
<body>
    
</body>
</html>